package TankCampaignGame.com.sjw.Game;

import javax.swing.*;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

public class GameWindow extends JFrame {
    MyPanel myPanel = null;
    public GameWindow(){
        myPanel = new MyPanel();
        this.add(myPanel);
        this.setSize(1000,1000);
        this.setVisible(true);
        this.addKeyListener(myPanel);
        Thread t = new Thread(myPanel);
        t.start();
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
